package cn.com.blueInfo.bpm.template.entity;

import cn.com.blueInfo.bpm.common.entity.BaseEntity;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 流程图配置表
 * @author suxch
 * @since 2025-08-24 01:41:15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "mc_uniflow_view", autoResultMap = true)
@Schema(description = "流程图配置表")
public class View extends BaseEntity {

    /** ID */
    @TableId(type = IdType.INPUT)
    @Schema(description = "ID")
    private Long id;
    /** 流程定义ID */
    @Schema(description = "流程定义ID")
    private Long processId;
    /** 节点数组 */
    @Schema(description = "节点数组")
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private JSONObject nodes;
    /** 连线数组 */
    @Schema(description = "连线数组")
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private JSONObject edges;
    /** 画图试图配置 */
    @Schema(description = "画图试图配置")
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private JSONObject viewConfig;

}
